import request from '@/utils/request'

// 查询订单审核照片列表
export function listPictures(query) {
  return request({
    url: '/order/pictures/list',
    method: 'get',
    params: query
  })
}

// 根据订单编号查询订单审核照片列表
export function listPicturesByOrderId(orderId) {
  return request({
    url: '/order/pictures/listByOrderId',
    method: 'get',
    params: { orderId: orderId }
  })
}

// 查询订单审核照片详细
export function getPictures(id) {
  return request({
    url: '/order/pictures/' + id,
    method: 'get'
  })
}

// 新增订单审核照片
export function addPictures(data) {
  return request({
    url: '/order/pictures',
    method: 'post',
    data: data
  })
}

// 修改订单审核照片
export function updatePictures(data) {
  return request({
    url: '/order/pictures',
    method: 'put',
    data: data
  })
}

// 删除订单审核照片
export function delPictures(id) {
  return request({
    url: '/order/pictures/' + id,
    method: 'delete'
  })
}
